﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cool.Application.System.PostService.Dtos;
using Cool.Core.Entities.System;

namespace Cool.Application.System.PostService
{
    public interface IPostService
    {
        /// <summary>
        /// 查询岗位列表
        /// </summary>
        /// <returns></returns>
        Task<PagedList<SysPost>> GetListAsync(PostTableSearchDto menuTreeTableSearchDto);

        /// <summary>
        /// 查询岗位详细
        /// </summary>
        /// <param name="postId"></param>
        /// <returns></returns>
        Task<SysPost> GetAsync(int postId);


        /// <summary>
        /// 新增岗位
        /// </summary>
        /// <param name="post"></param>
        Task<SysPost> AddAsync(SysPost post);

        /// <summary>
        /// 修改岗位
        /// </summary>
        /// <param name="post"></param>
        Task UpdateAsync(SysPost post);

        /// <summary>
        /// 删除岗位
        /// </summary>
        /// <param name="postId"></param>
        Task DeleteAsync(int postId);
    }
}
